package com.uzykj.modules.front.entity;

import com.uzykj.core.persistence.DataEntity;
import com.uzykj.modules.sys.entity.User;

/**
 * @author ghostxbh
 * @date 2020/8/18
 * @description
 */
public class FollowUser extends DataEntity<FollowUser> {
    private String followId;
    private String followedId;

    public FollowUser() {
    }

    /**
     * 构造对象
     * type：1、关注的人 2、我的粉丝
     *
     * @param id
     * @param type
     */
    public FollowUser(String id, int type) {
        if (type == 1)
            this.followId = id;
        else if (type == 2)
            this.followedId = id;
    }

    public String getFollowId() {
        return followId;
    }

    public void setFollowId(String followId) {
        this.followId = followId;
    }

    public String getFollowedId() {
        return followedId;
    }

    public void setFollowedId(String followedId) {
        this.followedId = followedId;
    }
}
